﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/TangoFamilyAndGuide.master" CodeBehind="HousingGuide.aspx.cs" Inherits="TangoFamilyAndGuide.Site.HousingGuide" Theme="Tango" Culture="en-GB" UICulture="en-GB" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<%@ Register Assembly="TangoFamilyAndGuideWebForm" Namespace="TangoFamilyAndGuide.WebForm" TagPrefix="cc1" %>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <style type="text/css">
        .myClass02 
        {
        	font-size: 14dpx;
        	font-weight: bold;
        }
        .myClass01 
        {
            background-color: white;
        }
        .myClass 
        {
            background-color: black;
        }
        .style1
        {
            width: 300px;
        }
        .style2
        {
            height: 50px;
        }
    </style>
    <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px; width: 100%; height: 208px;">
        <tr>
            <td>
                <asp:Panel runat="server" ID="Buscador" DefaultButton="BuscarButton">
                <table border="0" cellpadding="0" cellspacing="0" style="background-position: 0px; background-image: url('Imagenes/Housing.jpg'); width: 820px; background-repeat: no-repeat; background-position:top">
                    <tr>
                        <td colspan="5" align="center" class="style2">
                            <table border="0" cellpadding="0" cellspacing="0" align="center" width="780">
                                <tr align="right">
                                    <td align="center">
                                        <asp:Label ID="TituloPaginaLabel" runat="server" SkinID="TituloPagina" Height="70" Text="Milonguero Housing Network Guide"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="padding-right: 5px; padding-top: 2px">
                            <asp:Label ID="Label" runat="server" Text="Address"></asp:Label>
                        </td>
                        <td align="left" style="padding-top: 5px">
                            <asp:TextBox ID="DireccionTextBox" runat="server" MaxLength="50" TabIndex="6" Width="280px"></asp:TextBox>
                        </td>
                        <td style="padding-right: 30px">
                        </td>
                        <td align="right" style="padding-right: 5px; padding-top: 2px">
                            <asp:Label ID="ProvinciaLabel" runat="server" Text="State"></asp:Label>
                        </td>
                        <td align="left" style="padding-top: 5px">
                            <asp:TextBox ID="ProvinciaTextBox" runat="server" MaxLength="50" TabIndex="6" Width="280px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="padding-right: 5px; padding-top: 2px">
                            <asp:Label ID="PaisLabel" runat="server" Text="Country"></asp:Label>
                        </td>
                        <td align="left" style="padding-top: 5px">
                            <asp:TextBox ID="PaisTextBox" runat="server" MaxLength="50" TabIndex="6" Width="280px"></asp:TextBox>
                        </td>
                        <td style="padding-right: 30px">
                        </td>
                        <td align="right" style="padding-right: 5px; padding-top: 2px">
                            <asp:Label ID="LocalidadLabel" runat="server" Text="City"></asp:Label>
                        </td>
                        <td align="left" style="padding-top: 5px">
                            <asp:TextBox ID="LocalidadTextBox" runat="server" MaxLength="50" TabIndex="6" Width="280px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" align="right" style="height: 24px; padding-top: 20px; text-align: center">
                            <asp:Button ID="BuscarButton" runat="server" TabIndex="8" Text="Search" OnClick="BuscarButton_Click" UseSubmitBehavior="false" />
                            <asp:Button ID="ClearButton" runat="server" TabIndex="8" Text="Clear" OnClick="ClearButton_Click"  UseSubmitBehavior="false" />
                            <asp:Button ID="SalirButton" runat="server" CausesValidation="false" TabIndex="9" Text="Exit" PostBackUrl="~/Home.aspx" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px; padding-right: 30px; width: 100%">
                                <tr>
                                    <td align="left">
                                        <asp:Button ID="NewButton" runat="server" Text="Add New Housing Network" OnClick="NewButton_Click" UseSubmitBehavior="false" />
                                    </td>
                                    <td align="right">
                                        <asp:RadioButton ID="Vista1RadioButton" runat="server" AutoPostBack="True" Checked="true"
                                            Text="View 1" GroupName="Vistas" OnCheckedChanged="VistaRadioButton_CheckedChanged" />&nbsp;&nbsp;&nbsp;
                                        <asp:RadioButton ID="Vista2RadioButton" runat="server" AutoPostBack="True" Text="View 2"
                                            GroupName="Vistas" OnCheckedChanged="VistaRadioButton_CheckedChanged" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" colspan="5" style="padding-top:20px">
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:Panel ID="pHeader" runat="server" CssClass="collapsePanelHeader" 
                                        BackColor="#333333" Width="800px">
                                        <asp:Label ID="lblText" runat="server" Text="Information" Font-Size="16px" />
                                        <asp:Image ID="imageCE" runat="server" ImageUrl="~/Imagenes/Icons/icon_expand.gif" style="vertical-align:text-bottom" />
                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; vertical-align: top">
                                            <tr>
                                                <td style="">
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Panel ID="pBody" runat="server" CssClass="cpBody">
                                        <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; vertical-align: top">
                                            <tr>
                                                <td>
                                                    <hr noshade="noshade" size="1" color="#cccccc" />
                                                    <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" BackColor="Black">
                                                        <ajaxToolkit:TabPanel ID="TabPanel1" runat="server">  
                                                            <HeaderTemplate>  
                                                                English
                                                            </HeaderTemplate>  
                                                            <ContentTemplate>
                                                                <font color="Black">
                                                                <b>Tango and Family Guide</b>, gives you the opportunity to connect to people who want to accommodate and receive accommodation in the great Tango Community. 
                                                                Anyone may publish their accommodation requirements. This would provide the opportunity to increase your target market for travelers from over 70 countries. 
                                                                The aim is to create a network of Housing and Rentals to meet the great demand of dancers from around the world. Accommodate travelers in your homes (Housing Network) and/or also in temporary rental departments (Rentals by Owners) by posting your ad on this website and by receiving feedback from travelers who have stayed you. This will be a great contribution for future opportunities and serve as a reference to new travelers.
                                                                <br /><br />
                                                                <b>Policies and procedures:</b><br />
                                                                You will need to register in our website, upload pictures of your property and any further information both in English and Spanish . The property must be in excellent condition, with all services included without fault. 
                                                                <br /><br />
                                                                <b>Milongueros Housing:</b><br /> 
                                                                The idea is to charge USD 20 (twenty dollars) per day, the usual rate for housing worldwide. Keep in mind that one can accommodate more than one traveler, depending on your capacity. 
                                                                <br /><br />
                                                                <b>Direct Owner:</b><br /> 
                                                                 Prices of daily and monthly rent shall be fixed by owners, based on the neighborhood where housing and services are.
                                                                 <br /><br /> 
                                                                 Tango and Family Guide charge USD 25 per year for each published administrative expense. The payments  are made through PayPal. 
                                                                 <br /><br />
                                                                 Tango and Family Guide does not charge rentals of any kind or participates in the agreements between the given parties nor any fixed prices.
                                                                <br /><br />
                                                                <b>Recommendations:</b><br />
                                                                We recommend that both parties make an appointment on Skype. We suggest that one does not pay in advance. We ask both parties to submit respective information of rent and Tango Family Guide by mail to 
                                                                <b style="color: #B08000">housing@tangofamilyandguide.com.ar</b>, so we can then we verify the transaction for both parties. 
                                                                <br /><br />
                                                                <b>Thank you!.</b>
                                                                </font>  
                                                            </ContentTemplate>  
                                                        </ajaxToolkit:TabPanel>  
                                                        <ajaxToolkit:TabPanel ID="TabPanel2" runat="server">  
                                                            <HeaderTemplate>  
                                                                Spanish
                                                            </HeaderTemplate>  
                                                            <ContentTemplate>
                                                                <font color="black">
                                                                <b>Tango Family and Guide</b>, Les brinda la oportunidad de conectar a todos aquellos que deseen hospedar y recibir hospedaje dentro de la gran familia milonguera. 
                                                                Los interesados podrán publicar en esta web sus propiedades. Esto les brindara la posibilidad de incrementaran sus ofertas de alojamiento a viajeros de más de  70 Países. El objetivo es crear una Red de Housing y Rentals para satisfacer la Gran demanda de hospedaje. 
                                                                Alojando viajeros Milongueros en sus domicilios (Housing Network) y también en los departamentos de alquiler temporario (Rentals by Owners)
                                                                Publicando tu aviso de hospedaje en esta web, recibirás comentarios, de los viajeros que hayas hospedado. Esto será un gran aporte, en las sucesivas ofertas y servirán de referencia a nuevos viajeros. 

                                                                <br /><br />
                                                                <b>Normas y procedimientos:</b>
                                                                Es necesario darse de alta en la base de datos de la nuestra Web, subir fotos a la base y comentarios de tu propiedad, en inglés y castellano. Las propiedades deberán estar en excelente estado, con todos los servicios funcionando en condiciones óptimas.
                                                                <br /><br />
                                                                <b>Milongueros Housing:</b> La sugerencia es cobrar  USD 20 (veinte dólares) por día, tarifa habitual en los (Housing) internacionales. Tengan en cuenta que pueden alojar a mas de un viajero, dependiendo de sus comodidades.
                                                                <br /><br />
                                                                <b>Dueños Directos: </b>Los precios de alquiler diario y mensual, se fijaran por sus dueños, en base a la zona, donde se encuentre la vivienda, y las comodidades que ofrezcan.
                                                                 <br /><br />
                                                                Tango Family and Guide, cobrara USD 25, por año, por cada aviso publicado, en concepto de gastos administrativos.
                                                                <br /><br />
                                                                Tango Family and Guide, “No” cobrara alquileres de ningún tipo. Ni participa en los acuerdos celebrados entre las partes. Tampoco fija precios de ningún tipo.
                                                                <br /><br />
                                                                <b>Importante:</b>
                                                                Les recomendamos a ambas partes realizar una cita previa en Skype.
                                                                Sugerimos “NO” pagar en forma anticipada.
                                                                Les pedimos a ambas partes que  remitan la información de concreción del alquiler a <b style="color: #B08000">housing@tangofamilyandguide.com.ar</b> para así poder después calificar la operación por ambas partes. 
                                                                <br /><br />
                                                                <b>¡Muchas Gracias!</b>
                                                                </font> 
                                                            </ContentTemplate> 
                                                        </ajaxToolkit:TabPanel>     
                                                    </ajaxToolkit:TabContainer>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="pBody"
                                    CollapseControlID="pHeader" ExpandControlID="pHeader" Collapsed="true" TextLabelID="lblText" CollapsedText="Click here for more information / Presione aquí para mas información" ExpandedText="Click here for hide information / Presione aquí para ocultar la información"  ImageControlID="imageCE" ExpandedImage="~/Imagenes/Icons/icon_collapse.gif"
                                    CollapsedImage="~/Imagenes/Icons/icon_expand.gif"
                                    CollapsedSize="0">
                                </ajaxToolkit:CollapsiblePanelExtender>       
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="width: 800px;">
        <tr>
            <td>
                <asp:Panel ID="PanelPagingGridView" runat="server">
                    <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px; width: 800px;">
                        <tr>
                            <td style="padding-top: 0px; padding-bottom: 10px">
                                <hr noshade="noshade" size="1" color="#cccccc" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Panel ID="Panel1" runat="server" BackColor="black" BorderColor="black" BorderStyle="Solid"
                                    BorderWidth="1px" ScrollBars="Auto" Width="800px" BackImageUrl="">
                                    <cc1:PagingGridView ID="HousingPagingGridView" runat="server" OnPageIndexChanging="HousingPagingGridView_PageIndexChanging"
                                        OnRowDataBound="HousingPagingGridView_RowDataBound" FooterStyle-ForeColor="Brown"
                                        OnSorting="HousingPagingGridView_Sorting" AllowPaging="True" AllowSorting="True"
                                        PageSize="5" AutoGenerateColumns="false" SkinID="GrillaGuide" OnRowCommand="HousingPagingGridView_RowCommand"
                                        OnSelectedIndexChanged="HousingPagingGridView_SelectedIndexChanged" OnSelectedIndexChanging="HousingPagingGridView_SelectedIndexChanging"
                                        BackColor="#333333">
                                        <Columns>
                                            <asp:TemplateField ItemStyle-VerticalAlign="Top">
                                                <HeaderStyle Wrap="False" BorderColor="White" ForeColor="#333333" BackColor="#DBDBDB" />
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="Ver" runat="server" CausesValidation="false" CommandName="Detail"
                                                        CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" ToolTip='<%# String.Format("{0}{1}", "Row ", ((GridViewRow) Container).RowIndex + 1)%>'
                                                        Text="Detail" BackColor="#AAAAAA" ForeColor="#333333" Width="50px" Font-Bold="False"
                                                        CssClass="TextoCenter" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="Descripcion" HeaderText="Description" SortExpression="Descripcion"
                                                HeaderStyle-Width="250px">
                                                <HeaderStyle Wrap="False" BorderColor="White" />
                                                <HeaderStyle HorizontalAlign="Center" Wrap="false" ForeColor="#333333" BorderColor="White"
                                                    BackColor="#DBDBDB" />
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="true" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Direccion" HeaderText="Address" SortExpression="Direccion" HeaderStyle-Width="200px">
                                                <HeaderStyle HorizontalAlign="Center" Wrap="false" ForeColor="#333333" BorderColor="White"
                                                    BackColor="#DBDBDB" />
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="true" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Pais" HeaderText="Country" SortExpression="Pais" HeaderStyle-Width="120px">
                                                <HeaderStyle Wrap="False" BorderColor="White" />
                                                <HeaderStyle HorizontalAlign="Center" Wrap="false" ForeColor="#333333" BorderColor="White"
                                                    BackColor="#DBDBDB" />
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Provincia" HeaderText="State" SortExpression="Provincia"
                                                HeaderStyle-Width="150px">
                                                <HeaderStyle Wrap="False" BorderColor="White" />
                                                <HeaderStyle HorizontalAlign="Center" Wrap="false" ForeColor="#333333" BorderColor="White"
                                                    BackColor="#DBDBDB" />
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Localidad" HeaderText="City" SortExpression="Localidad"
                                                HeaderStyle-Width="150px">
                                                <HeaderStyle Wrap="False" BorderColor="White" />
                                                <HeaderStyle HorizontalAlign="Center" Wrap="false" ForeColor="#333333" BorderColor="White"
                                                    BackColor="#DBDBDB" />
                                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Wrap="True" />
                                            </asp:BoundField>
                                        </Columns>
                                        <PagerSettings Mode="NumericFirstLast" />
                                    </cc1:PagingGridView>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td valign="top" style="padding-left: 10px;">
                <asp:Panel ID="PanelListView" runat="server" BackColor="Black">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 800px; vertical-align: top">
                        <tr>
                            <td style="padding-top: 10px; padding-bottom: 10px">
                                <hr noshade="noshade" size="1" color="#cccccc" />
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-top: 10px; padding-bottom: 10px; width: 800px; vertical-align: top">
                                <asp:ListView ID="HousingListView" runat="server" OnPagePropertiesChanging="HousingListView_PagePropertiesChanging"
                                    GroupItemCount="2">
                                    <LayoutTemplate>
                                        <table>
                                            <tr>
                                                <td>
                                                    <table style="text-align: left; vertical-align: top">
                                                        <asp:PlaceHolder runat="server" ID="groupPlaceHolder"></asp:PlaceHolder>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </LayoutTemplate>
                                    <GroupTemplate>
                                        <tr id="groupPlaceHolder">
                                            <asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
                                        </tr>
                                    </GroupTemplate>
                                    <ItemTemplate>
                                        <td id="itemPlaceHolder" style="text-align: left; vertical-align: top;">
                                            <table border="0" cellspacing="5px">
                                                <tr>
                                                    <td style="width: 380px; vertical-align: top">
                                                        <table border="0">
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="NombreLabel" runat="server" SkinID="TituloColor1Grande" Text='<%# Eval("Direccion") %>'
                                                                        CssClass='<%# Eval("TipoDestacado").ToString()=="01" || Eval("TipoDestacado").ToString()=="02" ? "myClass01" : "myClass"%>'
                                                                        Width="300px" />
                                                                </td>
                                                                <td style="padding-top: 5px">
                                                                    <asp:Image ID="ImagenRecomendada" runat="server" ImageUrl='<%# Eval("TipoDestacado").ToString()=="02" ? "~/Imagenes/Estrella.jpg" : ""%>'
                                                                        Width="25px" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0">
                                                            <tr>
                                                                <td class="TituloMediano" style="width: 100px" rowspan="4" valign="top">
                                                                    <asp:LinkButton ID="lportada" runat="server" OnClick="lportada_Click" CommandArgument='<%# Eval("Id") %>'
                                                                        ToolTip='<%# Eval("Id") %>'>
                                                                        <asp:Image ID="ImagenPortada" runat="server" ImageUrl='<%# String.Format("~/ImagenesHousing/Portada/{0}", Eval("NombreImagenPortada"))%>'
                                                                            Width="100px" />
                                                                    </asp:LinkButton>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" style="vertical-align: top">
                                                                    <asp:Label ID="DescripcionLabel" runat="server" Text='<%# Eval("Descripcion") %>'
                                                                        Width="280px" CssClass='<%# Eval("TipoDestacado").ToString()=="02" ? "myClass02" : "myClass"%>' />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="TituloMediano" style="vertical-align: top; width: 80px">
                                                                    Address:
                                                                </td>
                                                                <td align="left" style="vertical-align: top">
                                                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Direccion") %>' />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="TituloMediano" style="vertical-align: top">
                                                                    Postcode:
                                                                </td>
                                                                <td align="left" style="vertical-align: top">
                                                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("CodPost") %>' />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="TituloMediano" style="vertical-align: top">
                                                                    Country:
                                                                </td>
                                                                <td colspan="2" style="vertical-align: top">
                                                                    <asp:Label ID="PaisLabel" runat="server" Text='<%# Eval("Pais") %>' />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="TituloMediano" style="vertical-align: top">
                                                                    State:
                                                                </td>
                                                                <td colspan="2" style="vertical-align: top">
                                                                    <asp:Label ID="ProvinciaLabel" runat="server" Text='<%# Eval("Provincia") %>' />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="TituloMediano" style="vertical-align: top">
                                                                    City:
                                                                </td>
                                                                <td colspan="2" style="vertical-align: top">
                                                                    <asp:Label ID="LocalidadLabel" runat="server" Text='<%# Eval("Localidad") %>' />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="vertical-align: bottom">
                                                        <hr noshade="noshade" size="1" color="#cccccc" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </ItemTemplate>
                                </asp:ListView>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="HousingListView">
                                    <Fields>
                                        <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="false"
                                            PreviousPageText="<" FirstPageText="<<" />
                                        <asp:NumericPagerField ButtonType="Link" />
                                        <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="false"
                                            NextPageText=">" LastPageText=">>" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="padding-left: 10px">
        <tr>
            <td align="center" style="padding-top: 20px">
                <asp:Label ID="MensajeLabel" runat="server" SkinID="MensajePagina" Text=""></asp:Label>
            </td>
        </tr>
    </table>
</asp:Content>
